<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<h:form id="actionsForm">
	<rich:panel>

        <f:facet name="header">
              <h:outputText value="Acciones" />
        </f:facet>
		
		<h:panelGrid columns="1" styleClass="acciones" cellspacing="0" cellpadding="3">

				<rich:panelMenu styleClass="panelMenu" mode="ajax"
						iconExpandedGroup="disc" iconCollapsedGroup="disc"
						iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
						iconCollapsedTopGroup="chevronDown" >
	
						<rich:panelMenuGroup label="Sucursales" styleClass="no_borde" expanded="true">
							<rich:panelMenuItem label="">
								<h:commandLink action="#{managerOfficesBean.goAddOffices}" value="Agregar Sucursal"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="update_office" value="Modificar Sucursal"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="delete_office" value="Eliminar Sucursal"></h:commandLink>
							</rich:panelMenuItem>
						</rich:panelMenuGroup>
	
						<rich:panelMenuGroup label="Productos" styleClass="no_borde">
							<rich:panelMenuItem label="">
								<h:commandLink action="#{managerProductsBean.goAddProducts}" value="Agregar Producto"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="update_product" value="Modificar Producto"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="delete_product" value="Eliminar Producto"></h:commandLink>
							</rich:panelMenuItem>
						</rich:panelMenuGroup>

						<rich:panelMenuGroup label="Vendedores" styleClass="no_borde">
							<rich:panelMenuItem label="">
								<h:commandLink action="#{managerUsersBean.goCreateManagerUsersBean}" value="Agregar Vendedor"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="update_user" value="Modificar Vendedor"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="delete_user" value="Eliminar Vendedor"></h:commandLink>
							</rich:panelMenuItem>
						</rich:panelMenuGroup>

						<rich:panelMenuGroup label="Ofertas" styleClass="no_borde">
							<rich:panelMenuItem label="">
								<h:commandLink action="#" value="Agregar Oferta"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="update_offer" value="Modificar Oferta"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="delete_offer" value="Eliminar Oferta"></h:commandLink>
							</rich:panelMenuItem>
						</rich:panelMenuGroup>	

						<rich:panelMenuGroup label="Inventarios" styleClass="no_borde">
							<rich:panelMenuItem label="">
								<h:commandLink action="#" value="Crear Inventario"></h:commandLink>
							</rich:panelMenuItem>
							<rich:panelMenuItem label="">
								<h:commandLink action="update_inventory" value="Actualizar Inventario"></h:commandLink>
							</rich:panelMenuItem>
						</rich:panelMenuGroup>							

				</rich:panelMenu>		

		</h:panelGrid>
	</rich:panel>
</h:form>